package com.ly.datacenter.crud.json;

import java.util.Map;

/**
 * function：
 * 
 * @author watson email: watson.wu@hotmail.com
 * @date 2009-9-2
 */
@SuppressWarnings("unchecked")
public class CRUDField {

	private String type;

	private String name;

	private String value;

	private Map attrs;// the element like FieldAttributeMetadata, could be extended

	public CRUDField() {
	}

	public CRUDField(Map attrs, String name, String type, String value) {
		this.attrs = attrs;
		this.name = name;
		this.type = type;
		this.value = value;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public Map getAttrs() {
		return attrs;
	}

	public void setAttrs(Map attrs) {
		this.attrs = attrs;
	}

}
